<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	 <link rel="stylesheet" href="style.css"> 
	<!--
	<link rel="stylesheet" type="text/css" href="style.css">
	-->
	
	
	<script type="text/javascript">
	    	function checkpassword() {
	    		var password = document.getElementById("pw").value;
	    		var repassword = document.getElementById("rpw").value;
	    		
	    		if(password == repassword) {
	    			 document.getElementById("tishi").innerHTML="<br><font color='green'>密码一致</font>";
	    			 document.getElementById("submit").disabled = false;
	    			
				 }else {
					 document.getElementById("tishi").innerHTML="<br><font color='red'>两次输入密码不一致!</font>";
		    		 document.getElementById("submit").disabled = true; 
				 } 
	    	}
	</script>
  </head>
  
  <body>
  <div class=bodylogin>
    <div class="ring">
  <i style="--clr:#00ff0a;"></i>
  <i style="--clr:#ff0057;"></i>
  <i style="--clr:#fffd44;"></i>
  <div class="login">
    <h2>注册</h2>
    <form action="./sign_msg">
	    <div class="inputBx">
	      <input type="text" placeholder="用户名" name="username">
	    </div>>
	    <div class="inputBx">
	      <input type="password" id="pw"placeholder="密码" name="password"> 
	    </div>
	    <div class="inputBx">
	      <input type="password" id="rpw"placeholder="确认密码" name="pswd" onkeyup="checkpassword()"> 
		    <span id="tishi"></span></input>		  
	    </div>>
	     <div class="inputBx">
	      <input type="text" placeholder="密保问题" name="security_question"> 
	    </div>
	     <div class="inputBx">
	      <input type="text" placeholder="密保问题答案" name="security_answer"> 
	    </div>>
	    <div class="inputBx">
	      <input type="submit" value="注册">
	    </div>
	</form>
    <div class="links">
      <a href="#">返回主页</a>
      <a href="account_manage/login.jsp">登录界面</a>
    </div>
  </div>
</div>
</div>
  </body>
</html>